package tech.aistar.philosophy.lod.version;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/25 4:13 下午
 */
public class TenantTest {
    public static void main(String[] args) {
        HouseCompany houseCompany = new House();
        houseCompany.info("碧桂园");

        Middler middler = new Middler();
        //中介绑定房地产
        middler.setHouseCompany(houseCompany);

        //租客
        Tenant tenant = new Tenant();
        //租客绑定中介公司
        tenant.setMiddlerCompany(middler);

        tenant.getInfo("碧桂园");
    }
}
